package com.jlcindia;

public class OopsTest42 {
	public static void main(String[] args) {
		Abc42 ref=new Xyz42();
		ref.show();
		ref.display();
	}
}
class Abc42{
	String data;
	void show(){}
	void display(){
		System.out.println("Abc:"+this);
		System.out.println("Abc:"+this.data);
	}
}
class Xyz42 extends Abc42{
	int data;
	void show(){
		System.out.println("Xyz:"+this);
		System.out.println("Xyz:"+this.data);
	}
}